﻿using System.ComponentModel;

namespace SXFramWork.Core
{
    /// <summary>
    /// 缓存键
    /// </summary>
    public static class CacheKey
    {
        /// <summary>
        /// 验证码 admin:verify:code:id
        /// </summary>
        [Description("验证码")]
        public const string VerifyCodeKey = "ADMIN:VERIFY:CODE:{0}";
     
        /// <summary>
        /// 刷新令牌 
        /// <para>ADMIN:AUTH:REFRESH_TOKEN:刷新令牌</para>
        /// </summary>
        [Description("刷新令牌")]
        public const string AUTH_REFRESH_TOKEN = "ADMIN:AUTH:REFRESH_TOKEN:{0}";

        /// <summary>
        /// 账户信息
        /// <para>ADMIN:USER:INFO:账户编号</para>
        /// </summary>
        [Description("账户信息")]
        public const string USER = "ADMIN:ACCOUNT:INFO:{0}";

        /// <summary>
        /// 账户权限列表
        /// <para>ADMIN:USER:PERMISSIONS:账户编号</para>
        /// </summary>
        [Description("账户权限列表")]
        public const string USER_PERMISSIONS = "ADMIN:ACCOUNT:PERMISSIONS:{0}";





    }
}
